import { lazy } from 'react';
import { ViewModuleIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/platform/finance',
    meta: {
      title: '财务管理',
      Icon: ViewModuleIcon,
    },
    children: [
      {
        path: 'approval',
        Component: lazy(() => import('pages/Finance/Approval/index')),
        meta: {
          title: '费用审核',
        },
      },
      {
        path: 'settlement',
        Component: lazy(() => import('pages/Finance/Settlement/index')),
        meta: {
          title: '费用结算',
        },
      },
      {
        path: 'recharge',
        Component: lazy(() => import('pages/Finance/Recharge/index')),
        meta: {
          title: '充值管理',
        },
      },
    ],
  },
  {
    path: '/client/finance',
    meta: {
      title: '财务管理',
      Icon: ViewModuleIcon,
    },
    children: [
      {
        path: 'approval',
        Component: lazy(() => import('pages/Finance/Approval/index')),
        meta: {
          title: '费用审核',
        },
      },
      {
        path: 'settlement',
        Component: lazy(() => import('pages/Finance/Settlement/index')),
        meta: {
          title: '费用结算',
        },
      },
      {
        path: 'quota',
        Component: lazy(() => import('pages/Finance/Quota/index')),
        meta: {
          title: '额度管理',
        },
      },
    ],
  },
];

export default result;
